package com.mvc.service.impl;

import com.mvc.entity.HomeTuijian;
import com.mvc.mapper.TuijianMapper;
import com.mvc.service.TuijianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName TuijianServiceImpl
 * @Description TODO
 * @Author Roc
 * @Date 2021/11/28 17:56
 * @Version 1.0
 **/
@Service
public class TuijianServiceImpl implements TuijianService {

    @Autowired
    private TuijianMapper tuijianMapper;

    @Override
    public List<HomeTuijian> pageSearch(Integer id,String name,Integer startRow, Integer limit) {
        return tuijianMapper.pageSearch(id,name,startRow,limit);
    }

    @Override
    public Integer tjinsert(HomeTuijian homeTuijian) {
        return tuijianMapper.tjinsert(homeTuijian);
    }

    @Override
    public Integer tjupdate(HomeTuijian homeTuijian) {
        return tuijianMapper.tjupdate(homeTuijian);
    }

    @Override
    public Integer tjdel(Integer id) {
        return tuijianMapper.tjdel(id);
    }

    @Override
    public Integer sjxjupdate(Integer state, Integer id) {
        return tuijianMapper.sjxjupdate(state,id);
    }
}
